﻿using Newtonsoft.Json;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
//using System.Web.DynamicData;

namespace OA.Model
{
    //[TableName("登录日志")]
    [Table("LoginLog")]
    public class LoginLog : BaseInfo 
    {

        [Display(Name ="用户ID")]
        public long UserID { get; set; }

        [MaxLength(50)]
        public string UserName { get; set; }

        /// <summary>
        /// 1:普通用户 2：管理员
        /// </summary>
        [Display(Name = "用户类型")]
        [Description("1:普通用户 2:管理员")]
        public int TypeID { get; set; }

        /// <summary>
        /// -1 登录失败 1 登录成功
        /// </summary>
        [Display(Name = "状态")]
        [Description("-1 登录失败 1 登录成功")]
        public  int Status { get; set; }

        [Display(Name = "IP地址")]
        [MaxLength(60)]
        public string IP { get; set; }

        [Display(Name = "平台")]
        [MaxLength(60)]
        public string Platform { get; set; }

    }
}
